<%--
  Created by IntelliJ IDEA.
  User: owner
  Date: 2018-08-06
  Time: 23:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<nav class="top">
        <span class="pull-left">
            <a href="${contextPath}">
            <span class="glyphicon glyphicon-home "></span>
            天猫首页</a>
            <span>欢迎来到天猫</span>
            <c:if test="${!empty user}">
                <a href="login.jsp">${user.name}</a>
                <a href="forelogout">退出</a>
            </c:if>

        <c:if test="${empty user}">
            <a href="login.jsp">请登录</a>
            <a href="register.jsp">免费注册</a>
        </c:if>
        </span>
    <span class="pull-right" >
            <a href="foreorderlist">我的订单</a>
            <a href="forecart">
                <span class="glyphicon glyphicon-shopping-cart"></span>
                购物车<strong>${total}</strong>件
            </a>
        </span>
</nav>
